<template>
  <div id="app">
    <Layout />
  </div>
</template>
<script>
const acts = [
  // "refreshAftersaleReason",
  // "refreshWarehouse",
  // "refreshSupplier",
  // "refreshAccount",
  // "refreshUserList",
  // "refreshArea",
 // "refreshRole",
  // "refCategory"
];
import { Watermark } from "watermark-js-plus";
import { mapActions } from "vuex";
import Layout from "./views/Layout/index.vue";
export default {
  components: {
    Layout,
  },
  created() {
    acts.forEach((k) => this[k]());
  },
  watch: {},
  mounted() {
    try {
      const { userName = "", phoneNum = "" } = this.$store.state.userData || {};
      const watermark = new Watermark({
        content: `${userName || ""} ${phoneNum || ""}`,
        width: 240,
        height: 240,
        fontColor: "rgba(0,0,0,0.1)",
      });
      watermark.create();
    } catch (e) {}
  },
  methods: {
    ...mapActions(acts),
  },
};
</script>

<style lang="less">

</style>
